package com.yanqu.road.entity.log.cross;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;

import java.math.BigInteger;

@FieldTypeAnnotation(tableName = "t_l_ck_palace_battle", desc = "皇城抢占日志", autoSave = true, uploadCk = true, isCross = true)
public class LogPalaceBattle extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动id", isIndex = true)
    private int activityId;
    @FieldTypeAnnotation(desc = "用户id", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "皇宫位置")
    private int pos;
    @FieldTypeAnnotation(desc = "目标皇宫位置")
    private int destPos;
    @FieldTypeAnnotation(desc = "基础实力")
    private BigInteger ability;
    @FieldTypeAnnotation(desc = "称号")
    private String titleList;
    @FieldTypeAnnotation(desc = "总实力")
    private BigInteger totalAbility;
    @FieldTypeAnnotation(desc = "对手用户id")
    private long enemyUserId;
    @FieldTypeAnnotation(desc = "对手实力")
    private BigInteger enemyAbility;
    @FieldTypeAnnotation(desc = "对手称号")
    private String enemyTitleList;
    @FieldTypeAnnotation(desc = "对手总实力")
    private BigInteger enemyTotalAbility;
    @FieldTypeAnnotation(desc = "是否成功")
    private boolean isWin;

    public LogPalaceBattle(int activityId, long userId, int pos, int destPos, BigInteger ability, String titleList,
                           BigInteger totalAbility, long enemyUserId, BigInteger enemyAbility, String enemyTitleList,
                           BigInteger enemyTotalAbility, boolean isWin) {
        this.activityId = activityId;
        this.userId = userId;
        this.pos = pos;
        this.destPos = destPos;
        this.ability = ability;
        this.titleList = titleList;
        this.totalAbility = totalAbility;
        this.enemyUserId = enemyUserId;
        this.enemyAbility = enemyAbility;
        this.enemyTitleList = enemyTitleList;
        this.enemyTotalAbility = enemyTotalAbility;
        this.isWin = isWin;
    }

    public long getUserId() {
        return userId;
    }

}
